package com.e3.basdoc.dept.client;

import com.e3.basdoc.dept.model.DeptModel;
import com.e3.template.tgf.TGFGridPanel;
import com.e3.template.tgf.TGFQueryDialog;
import com.e3.template.tgf.TGFRefDialog;
import com.e3.template.tgf.TGFTreePanelAsync;

public class DeptRefDialog extends TGFRefDialog<DeptModel>{

	@Override
	protected String getRefDialogTitle() {
		return DeptMessages.INSTANCE.title_dept_refdialog();
	}

	@Override
	protected TGFGridPanel<DeptModel> createGridPanel() {
		return new DeptGridPanel();
	}

	@Override
	protected TGFTreePanelAsync<DeptModel> createTreePanel() {
		return new DeptTreePanel();
	}

	@Override
	protected TGFQueryDialog<DeptModel> createQueryDialog() {
		return new DeptQueryDialog();
	}

	@Override
	protected String getCurrentLocalName() {
		return DeptMessages.INSTANCE.local_name();
	}

}
